package com.sun.androidexerciseproject.widget.activity.ui;

import android.content.Intent;
import android.support.v7.widget.AppCompatButton;

import com.sun.androidexerciseproject.widget.R;
import com.sun.androidexerciseproject.widget.base.BaseActivity;

public class TwoActivity extends BaseActivity {
    public void initViews() {
        AppCompatButton button = (AppCompatButton) findViewById(R.id.btn);
        button.setOnClickListener(v ->
                startActivity(new Intent(TwoActivity.this, OneActivity.class)));
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_two;
    }
}
